﻿using System;

namespace PeiYue.Model.Dto.Sys
{
    public class DicDetailDto 
    {
        public long id { get; set; }
        /// <summary>
        /// 字典id
        /// </summary>
        public long dic_header_id { get; set; }
        /// <summary>
        /// 键
        /// </summary>
        public string k { get; set; }
        /// <summary>
        /// 值
        /// </summary>
        public string v { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }

        public SelectItemDto ToSelectItem()
        {
            var item = new SelectItemDto();
            item.Id = Convert.ToInt64(k);
            item.Name = v;
            return item;
        }
    }
}
